<script lang="ts" setup>
import BottomOperation from './_components/BottomOperation.vue';
import ChessBoard from './_components/ChessBoard.vue';
import TopContainer from './_components/TopContainer.vue';

definePageMeta({
  layout: 'mobile',
})

const { initCurrentChesses } = useFlight()

onMounted(() => {
  initCurrentChesses()
})

useSeoMeta({
  title: '飞行棋',
  description: '飞行棋',
  keywords: '飞行棋',
})
</script>

<template>
  <div class="flight-container">
    <TopContainer />
    <ChessBoard />
    <BottomOperation />
  </div>
</template>

<style scoped lang="scss">
.flight-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  min-height: 100%;
  padding: 20px 0 40px 0;
  background: linear-gradient(180deg, #fec5e0, #fedaec);
}
</style>
